﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ForSql.SmartLibrary.MetaDataAttributes
{
    public class SpecialColumnAttribute:Attribute
    {
        private bool _notupdate;
        private bool _notinsert;
        private bool _notassign;
        private bool _iscomplex;

        /// <summary>
        /// 构造SpecialColumn
        /// </summary>
        /// <param name="notupdate">无需更新</param>
        /// <param name="notinsert">无需插入</param>
        /// <param name="notassign">无需赋值</param>
        /// <param name="iscomplex">是否是复杂对象</param>
        public SpecialColumnAttribute(bool notupdate,bool notinsert,bool notassign,bool iscomplex)
        {
            _notupdate = notupdate;
            _notinsert = notinsert;
            _notassign = notassign;
            _iscomplex = iscomplex;
        }

        public bool NotUpdate
        {
            get
            {
                return _notupdate;
            }
        }

        public bool NotInsert
        {
            get
            {
                return _notinsert;
            }
        }

        public bool NotAssign
        {
            get
            {
                return _notassign;
            }
        }

        public bool IsComplex
        {
            get
            {
                return _iscomplex;
            }
        }
    }
}
